﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Register.BLL;
using Register.Model;
using System.Web.Script.Serialization;

namespace RegisterWeb.Manager.SystemUserManager.ashx
{
    /// <summary>
    /// ParametersService 的摘要说明
    /// </summary>
    public class ParametersService : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            String type = context.Request["type"].ToString();
            List<Parameter> list = ParamterHelper.GetParametersByType(type);
            JavaScriptSerializer jss = new JavaScriptSerializer();
           context.Response.Write(jss.Serialize(list));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}